package com.warm.androidstudy.constant;

/**
 * <pre>
 *     author : guosenlin
 *     e-mail : guosenlin91@gmail.com
 *     time   : 2021/03/10
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public enum IDCard {

    S("1","身份证"),
    J("2","军官证"),
    H("3","户口本");
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public static String getValue(String key){
        for (IDCard sex: IDCard.values()){
            if (sex.key .equals( key)){
                return sex.value;
            }
        }
        return "";
    }
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    IDCard(String key, String value){
        this.key = key;
        this.value = value;
    }
    private String key;
    private String value;

}
